package com.hp.mybatis.pojo;


import java.io.Serializable;
import java.util.List;

public class User implements Serializable {

  private String userId;
  private String userName;
  private String userPwd;
  private Long userType;
  private String userImg;

  //用户的订单集合
  private List<Order> orders;

  public User(String userId, String userName, String userPwd, Long userType, String userImg) {
    this.userId = userId;
    this.userName = userName;
    this.userPwd = userPwd;
    this.userType = userType;
    this.userImg = userImg;
  }

  public User() {
  }

  public List<Order> getOrders() {
    return orders;
  }

  public void setOrders(List<Order> orders) {
    this.orders = orders;
  }

  public String getUserId() {
    return userId;
  }

  public void setUserId(String userId) {
    this.userId = userId;
  }


  public String getUserName() {
    return userName;
  }

  public void setUserName(String userName) {
    this.userName = userName;
  }


  public String getUserPwd() {
    return userPwd;
  }

  public void setUserPwd(String userPwd) {
    this.userPwd = userPwd;
  }


  public Long getUserType() {
    return userType;
  }

  public void setUserType(Long userType) {
    this.userType = userType;
  }


  public String getUserImg() {
    return userImg;
  }

  public void setUserImg(String userImg) {
    this.userImg = userImg;
  }

  @Override
  public String toString() {
    return "User{" +
            "userId='" + userId + '\'' +
            ", userName='" + userName + '\'' +
            ", userPwd='" + userPwd + '\'' +
            ", userType=" + userType +
            ", userImg='" + userImg + '\'' +
            '}';
  }
}
